
package com.be.beadmin.service.repository;

import com.be.beadmin.service.entity.InspectTask;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
* @author chenxu
* @date 2023-08-03
**/
public interface InspectTaskRepository extends JpaRepository<InspectTask, String>, JpaSpecificationExecutor<InspectTask> {

    InspectTask findInspectTaskByIdAndDelete(String id, Integer delete);

    InspectTask findInspectTaskById(String id);

    List<InspectTask> findInspectTasksByInspectByAndDeleteAndIsNotifyAndPlanedTimeBefore(String username, int delete, int isNotify, Date end);
}